package com.friends.digitpic.service.service.impl;

import javax.annotation.Resource;

import org.jeecgframework.minidao.pojo.MiniDaoPage;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Component;
import com.friends.digitpic.service.dao.UserpicgroupDao;
import com.friends.digitpic.service.entity.UserpicgroupEntity;
import com.friends.digitpic.service.service.UserpicgroupService;

/**
 * 描述：用户图集
 * @author: jiangge xia
 * @since：2018年09月15日 22时44分22秒 星期六 
 * @version:1.0
 */

@Transactional
@Component
public class UserpicgroupServiceImpl implements UserpicgroupService {

	@Resource(name = "userpicgroupDao")
	private UserpicgroupDao userpicgroupDao;


	public UserpicgroupEntity getUserpicgroup(String userpicgroupid) {
		return userpicgroupDao.get(userpicgroupid);
	}

	public int updateUserpicgroup(UserpicgroupEntity userpicgroup) {
		return userpicgroupDao.update(userpicgroup);
	}

	public void insertUserpicgroup(UserpicgroupEntity userpicgroup) {
		userpicgroupDao.insert(userpicgroup);
		
	}

	public MiniDaoPage<UserpicgroupEntity> getUserpicgroupAll(UserpicgroupEntity userpicgroup, int page, int rows) {
		return userpicgroupDao.getAll(userpicgroup, page, rows);
	}

	public void deleteUserpicgroup(UserpicgroupEntity userpicgroup) {
		userpicgroupDao.delete(userpicgroup);
		
	}
}
